package com.yupi.springbootinit.statemachine.enums;

import com.yupi.springbootinit.statemachine.core.State;

/**
 * 生产排期状态枚举
 * 排期状态流程：编辑中 → 已发布 → 已调整
 */
public enum ProductionScheduleStateEnum implements State {
    
    EDITING("EDITING", "编辑中", "PRODUCTION_SCHEDULE"),
    PUBLISHED("PUBLISHED", "已发布", "PRODUCTION_SCHEDULE"),
    ADJUSTED("ADJUSTED", "已调整", "PRODUCTION_SCHEDULE");
    
    private final String code;
    private final String description;
    private final String stateType;
    
    ProductionScheduleStateEnum(String code, String description, String stateType) {
        this.code = code;
        this.description = description;
        this.stateType = stateType;
    }
    
    @Override
    public String getCode() {
        return code;
    }
    
    @Override
    public String getDescription() {
        return description;
    }
    
    @Override
    public String getStateType() {
        return stateType;
    }
}